<%@ page import="com.timeDeal.bean.PageList" %>
<%@ page import="java.util.List" %>
<%@ page import="com.timeDeal.bean.XuqiufabuBean" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %><%--
  Created by IntelliJ IDEA.
  User: 妮子
  Date: 2016/9/12
  Time: 19:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/xuqiufabutop.jsp"%>
<%
    PageList pagelist=(PageList) request.getAttribute("pagelist");
%>
<div class="row">
    <table class="table" colspan="10">
        <tr><h1>您的历史成果</h1></tr>
        <tr>
            <th>需求名称</th>
            <th>允许竞标</th>
            <th>操作</th>
        </tr>
        <%
            if(pagelist!=null){
                List<Object> list=pagelist.getList();
                for(int i=0;i<list.size();i++){
                    XuqiufabuBean axuqiu=(XuqiufabuBean) list.get(i);
        %>
        <tr>
            <td><a href="<%=ctxpath%>/user/xuqiudetailgg.jsp?id=<%=axuqiu.getXuqiufabuid()%>"><%=axuqiu.getXuqiumingcheng()%></a></td>
            <td> <%=axuqiu.getYunxujingbiao()%></td>
            <td>
            <%if(StringUtils.equals(axuqiu.getYunxujingbiao(),"是")){%>
               <button    value="<%=axuqiu.getXuqiufabuid()%>" id="chexiaoyunxu" class="chexiaoyunxu btn"  >撤销</button>
            <%}else { %>
            <button    value="<%=axuqiu.getXuqiufabuid()%>" id="chexiaobuyunxu" class="chexiaobuyunxu btn"  >撤销</button>
            <%}%>
            </td>
        </tr>
        <%
                }}
            if(pagelist!=null){
        %>
        <tr>
            <td>
            <%
                for(int i=0;i<pagelist.getTotalpage();i++){
            %>
            <span><a href="/TimeDeal/user/wofabudegg.jsp?currentpage=<%=i+1%>"><%=i+1%></a></span>
            <%}%>
            </td>
        </tr>
        <%}%>
    </table>
</div>
<%@include file="../inc/bottom.jsp"%>
